<template>
	<view class="home">
		<view class="box">
			<view class="box_list">
				<view :style="index==list.length-1?'border:none':''" class="flex_lr list"  v-for="(item,index) in list">
					<view>
						<view class="f1">{{item.memo}}</view>
						<view>{{item.createtime_text}}</view>
					</view>
					<view class="f1">{{item.op}}￥{{item.money||'0'}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[],
				time:''
			}
		},
		onLoad() {
			this.init()
		},
		methods: {
			init(){
				this.rq.getData('Wechat/money_log', {} ).then(res => {
					if (res.code == 1) {
						console.log(res.data)
						this.list = res.data.data
					}
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.box{
		margin: 40rpx;
	}
	.box_list{
		background: #FFF;
		box-shadow: 5px 5px 10px 0 rgba(186, 186, 186, 0.7);
		border-radius: 30px;
		padding: 40rpx;
		.list{
			min-height: 100rpx;
			padding-bottom: 10rpx 0;
			margin-bottom: 10rpx;
			border-bottom: 2rpx solid #d1d1d1;
		}
		.box_list_img{
			width: 80rpx;
			height: 80rpx;
			border-radius: 50%;
			margin-right: 20rpx;
		}
		.f1{
			font-size: 30rpx;
			font-weight: bold;
		}
		.f2{
			font-size: 26rpx;
		}
		.f3{
			font-size: 75rpx;
		}
		.up_img{
			width: 180rpx;
			height: 180rpx;
			border-radius: 10px;
			background-color: #f3f5f7;
		}
	}
	.sex_box{
		border-radius: 10rpx;
		background: #000;
		color: #FFF;
		padding: 10rpx 40rpx;
	}
	.sex_box_b{
		border-radius: 10rpx;
		color: #000000;
		border: 2rpx solid #000;
		padding: 10rpx 40rpx;
	}
	.box_but{
		position: fixed;
		bottom: 100rpx;
		width: 80%;
		font-size: 34rpx;
		color: #FFF;
		padding: 30rpx 0;
		background: #000;
		border-radius: 50rpx;
	}
</style>